Computing platform interface with memory management

ABSTRACT

In some embodiments, a PPM interface may be provided with functionality to facilitate to an OS memory power state management for one or more memory nodes, regardless of a particular platform hardware configuration, as long as the platform hardware is in conformance with the PPM interface.

CLAIM OF PRIORITY

This Application is a continuation of, and claims priority to, U.S. patent application Ser. No. 13/977,635, filed on Jun. 28, 2013 and titled “COMPUTING PLATFORM INTERFACE WITH MEMORY MANAGEMENT”, which is a National Stage Entry of, and claims priority to, PCT Application No. PCT/US2012/066326, filed on Nov. 21, 2012 and titled “COMPUTING PLATFORM INTERFACE WITH MEMORY MANAGEMENT”, which claims the benefit of Provisional Patent Application No. 61/563,030, filed on Nov. 22, 2011 and titled “CPPC, RASF, MPST, FPDT, AND EINJ TECHNOLOGY”, which is incorporated by reference in its entirety for all purposes.

BACKGROUND

The present invention relates generally to a platform performance management interface. In particular, it pertains to providing memory power and/or performance management services through a performance management interface in a computing platform.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.

FIG. 1 is a block diagram of a computing platform with MPST support provided through a PPM interface in accordance with some embodiments.

FIG. 2 is a diagram showing an abstracted representation of a PPM interface having an MPST implemented on a platform in accordance with some embodiments.

FIG. 3 is a general routine for providing MPST services through a PPM interface to a platform OS in accordance with some embodiments.

FIG. 4 is a diagram showing a root pointer to a table structure in an ACPI interface in accordance with some embodiments.

FIG. 5 is a diagram showing a description table structure for an ACPI interface in accordance with some embodiments.

FIG. 6 is an organizational overview of an MPST table structure for an ACPI implementation in accordance with some embodiments.

FIG. 7 is a diagram showing memory power state transitions for an ACPI implementation in accordance with some embodiments.

FIG. 8 is an overview table for an MPST table structure in accordance with some embodiments.

FIG. 9 is a table indicating PCC Command Codes used by an MPST platform communication channel in accordance with some embodiments.

FIG. 10 is a table showing an MPST platform communication channel shared memory region in accordance with some embodiments.

FIG. 11 is a table with power state values for a PPM MPST in accordance with some embodiments.

FIG. 12 is a command status table for a PPM MPST in accordance with some embodiments.

FIG. 13 is a table with memory power node structure definitions for a PPM MPST in accordance with some embodiments.

FIG. 14 is a table showing flag formats for a PPM MPST in accordance with some embodiments.

FIG. 15 is a table of memory power state structure definitions for aPPM MPST in accordance with some embodiments.

FIG. 16 is a table showing memory power state characteristics structure for a PPM MPST in accordance with some embodiments.

FIG. 17 is a table showing a flag format for the memory power state characteristics structures of FIG. 16 in accordance with some embodiments.

FIG. 18 is a diagram showing a platform memory topology Table (PMTT) in accordance with some embodiments.

FIG. 19 is a table showing a common memory aggregator device structure in accordance with some embodiments.

FIG. 20 is a table showing a socket structure in accordance with some embodiments.

FIG. 21 is a flow diagram of a routine for processing an MPST command through a Platform Communications Channel (PCC) in accordance with some embodiments.

DETAILED DESCRIPTION

FIG. 1 is a diagram of a portion of a computing platform 100 with a performance and power management (PPM) interface facilitating memory power state (MPS) services in accordance with some embodiments. The computing platform, as generally illustrated in the figure, is intended to represent a variety of different computing platform types including but not limited to servers, desktop PCs, netbooks, ultra-books, tablets, smart-phones, and the like. For simplicity and ease of understanding, details and/or components, not pertinent to this disclosure, for some platform embodiments will have been omitted.

As used herein, the term “PPM” stands for performance and power management and refers to any suitable interface for enabling operating systems, as well as applications through their operating systems, to control, monitor, maintain, etc., hardware components within a platform, as long as the platform and OS, at least with regard to a relevant feature, comply with the PPM interface. An example of a PPM is the Advanced Configuration and Power Interface (ACPI).

Memory power state management services, in some implementations, refers to entering and exiting portions of memory (e.g., nodes) into one of several memory power states in order to save power for un-used or under-used memory. Memory typically corresponds to system memory (e.g., DRAM), but it could also encompass cache memory and/or non-volatile memory that is part of a system's memory map). The MPS management is facilitated through a PPM interface, thereby enabling a platform's operating system to manage memory on different platforms, as long as the platform and OS comply, at least in pertinent part, with the PPM interface.

The depicted platform comprises a CPU 102, sensory devices 110 (e.g., gyros, speakers, cameras, etc.), other devices/interfaces (e.g., keypad, pointer device, USB ports, PCI ports, wireless Ifs, etc.) 116, and a graphics processor (GPX) 122, coupled together through one or more busses and/or point-to-point interconnects. The platform also includes memory 108 (e.g., DRAM) coupled through a memory controller 106 to at least the CPU 102, and it also includes firmware 104 (e.g., implemented with non-volatile memory such as flash memory) coupled to the CPU 102. The platform additionally includes a display 126 coupled through a display controller 124 to the GPX 122 and/or to the CPU 102. (it should be appreciated that while a single CPU block is shown, the platform may include multiple CPUs and/or processing cores for executing one or more OS threads and for performing various different tasks. However, for simplicity, a single CPU executing an operating system is shown herein.)

The platform further includes a storage drive 114 (e.g., a solid state drive) coupled through a storage drive controller 112 to at least the CPU 102. The storage drive may store data, applications, and one or more operating systems (OS) such as Linux, Windows™, Mac OS™ Android, etc., systems. The firmware 104 includes a BIOS, EFI or other boot/initialization software. (Note that the role of the BIOS has changed over time. For example, in some platforms, the BIOS is being replaced by the more complex EFI (Extensible Firmware Interface), but a BIOS for firmware remains in widespread use. To date, EFI has been supported in Microsoft Windows™ versions supporting GPT, in the Linux kernel 2.6.1 and later, and in Mac OS. However, the distinction between BIOS and EFI is rarely made in terminology by the average computer user, making BIOS a catch-all term for both systems. For simplicity, however, the term “firmware” will be used generally to refer to the BIOS, EFI or alternative boot/initialization code.)

Together, the operating system and firmware include software components to implement a PPM interface 146 for the platform. As abstractly represented in the figure, when the platform starts up, after executing primitive start code, the CPU retrieves and runs the boot software (firmware space 142) and among other things, at that time may establish data structures for the PPM interface 146. Once the firmware space (e.g., BIOS, EFI) has initialized, the OS space 144 is then established as the OS boots within the CPU. At this time, PPM modules within the OS may identify various characteristics of the platform through the PPM interface 146 that is being established.

FIG. 2 is a block diagram abstractly showing a PPM interface for interfacing between OS power and performance functionality, on the one hand, and platform hardware, on the other hand. (It should be noted that this diagram is drawn from an ACPI specification, which henceforth, is used primarily as an example for conveniently presenting some of the principles taught herein. However, the figure has been abstracted and modified to conform with concepts particular to this disclosure. For example, the more general term: “PPM” is used rather than “ACPI” in some places and instead of “OSPM” within the OS space. It should be appreciated that ACPI is a specific implementation of a PPM interface.)

With pertinence to the present disclosure, platform hardware 202 is shown with CPU 102, memory controllers 26 and memory modules 208. The memory controllers may correspond to specific circuits, logic units, controllers, executing software, etc. As indicated, a memory controller may be part of a CPU, or SOC, and/or it could be part of a separate peripheral module such as a control hub chip. The memory modules 208 correspond to physical and/or logical memory modules. They may further be divided, e.g., by their associated memory controller, into memory power nodes for application of memory power states, as discussed below. In some embodiments, when the PPM interface is created, e.g., during platform boot, PPM data structures (e.g., tables 226) are populated with pertinent data (as discussed below with regard to the MPST structure) for implementing memory power state management for the memory modules 208.

The CPU 102, as discussed above, executes firmware and the OS, thereby establishing the PPM interface 146, OS Space 144, and application space 240. The application space includes APIs 242 for applications to run on the platform. The OS space 144 includes PPM interface driver 232, device drivers 234, an OS kernel 236, and a PPM system 238, which facilitates performance and power management from the OS. In the depicted embodiment, a platform control channel (PCC) is implemented by the PPM interface to communicate between the OS PPM functionality and the PPM hardware features.

The PPM interface 146 comprises PPM registers 222, PPM firmware components 224 and PPM tables 226. The registers 222 may correspond to specific registers, e.g., dedicated PPM registers in the hardware, e.g., within the CPU or as part of a controller such as a baseboard controller, or to virtual registers created in software. They also may be a constrained part of the hardware interface, described (at least in location) by the PPM Tables. ACPI, for example, defines a hardware register interface that an ACPI-compatible OS may use to control core power management and performance features of platform hardware, as described in Section 4 of the ACPI 5.0 Specification (the ACPI Hardware Specification).

The PPM firmware components 224 include portions of the firmware corresponding to PPM implementations. Typically, they are used to implement interfaces for sleep, wake, and some restart operations. Pertinent to this disclosure, among other things, they may also include components for defining PPM data structures and tables, including those used for memory power state (MP state) services, and they may also include one or more routines for maintaining and/or updating data and/or addresses in the tables. (Note that some of the ACPI features corresponding to firmware components 224 are described in Section 5.3, “Namespace”, of the ACPI 5.0 Specification.

The PPM tables 226, in general, describe the interfaces to the hardware. Some descriptions limit what can be built. For example, some controls may be embedded in fixed blocks of registers, and the table specifies the address of the register block. Most descriptions allow the hardware to be built in arbitrary ways and can describe arbitrary operation sequences needed to make the hardware function. (For the rest of the disclosure, ACPI tables will be described and/or used, implicitly or expressly, as examples of suitable PPM table structures. ACPI tables are generally described in Section 5.2 of the ACPI 5.0 Specification.)

ACPI tables having “Definition Blocks” can make use of a pseudo-code type of language, the interpretation of which can be performed by the OS. That is, OSPM (corresponds to PPM system 238) includes and uses an interpreter that executes procedures encoded in the pseudo-code language and stored in the ACPI tables containing “Definition Blocks.” The pseudo-code language, known as ACPI Machine Language (AML), is a compact, tokenized, abstract type of machine language.

FIG. 3 shows a routine 302 for an OS to facilitatememory power state management, in accordance with some embodiments. At 304, during the platform boot, MPST data structures are created in association with the particular platform, e.g., particular hardware, memory and memory configurations, and operating system. That is, a benefit of using a PPM interface is that services may be made available to an OS without the need for a uniform or known platform configuration, as long as the platform and operating system comply with the PPM interface.) Definition tables identifying available MPSTinformation (memory power nodes, particular PCC information, and memory power state characteristic information) provided by various platform hardware components may be generated. This may be done, for example, by PPM components during a firmware boot process. In some ACPI implementations, the booting firmware may create the MPST table structure in dedicated firmware memory space, e.g., space claimed by the firmware and not available for modification to the OS, e.g., made available, if at all, to the OS on a read-only basis.

At 306, the OS identifies platform MPST PPM capabilities. In some embodiments, this occurs when the OS is booted and initializes. PPM components (e.g., OS PPM system 238, from FIG. 2, referred to as OSPM in ACPI) identify the MPST data structures that were created and defined by the firmware PPM components.

At 308, the platform maintains/updates the MPST data structures. This will typically primarily be done at boot but in some cases, some parts may be ongoing while the platform is operating. Some MPST functionality may be provided from hardware, as previously discussed, with memory controllers providing pertinent memory power information for their client memory to the ACPI MPST structures. For example, a memory controller might monitor memory blocks or ranges to assess which are used, busy, etc., e.g., for coalescing or autonomous MP state transitioning. They may then update an appropriate MPST data structure, e.g., PPM table associated with the MPST structure.

Any suitable approach may be used to enable a controller to update a MPST table. For example, it may use the PCC channel in an ACPI implementation. In some embodiments, a memory controller may access the PPM interface by issuing a system interrupt to access a PPM component from the firmware. For example, in most x86 platforms, an SMI (system management interrupt) could be issued to place the system in system management mode (SMM), which results in an SMI handler routine in the platform firmware to be called. The SMI handler could process one or more OS MPST commands (e.g., as defined in the PPM components including data structures such as tables), update MPST structures (e.g., tables) with data from controllers, and/or invoke one or more PPM components, e.g., in firmware, for execution. (Note that as used herein, “system interrupt” refers to any interrupt in any type of platform architecture to cause a CPU to process a desired interrupt handler, a routine usually running outside of the operating system. So, with the present disclosure, it could be any interrupt used to invoke an interrupt handler to directly or indirectly invoke PPM components outside of OS space to service an Oss” MPST task. Typically, but not always, the CPU will suspend running the OS and switch to run the interrupt handler. When finished, the interrupt handler may issue its own interrupt, e.g., ASI or SCI in x86 platforms, to return operation back to the OS. Interrupt handlers, such as an SMI handler in x86 platforms, may conveniently be part of platform firmware.)

At 310, if the OS has an MPST task to be performed, e.g., an OS power management module desires to place one or more memory power nodes into a reduced power state, then at 312, the OS PPM component performs the MPST service request through the PPM interface. In some embodiments, it issues one or more suitable commands and/or address pointers, as defined in the appropriate MPST data structure and invokes the commands via the PPM interface. For example, it could issue a system interrupt (e.g., SMI) after writing command/address information to an appropriate location(s) defined in the table(s) and to ultimately be serviced by PPM components via the interrupt handler (e.g., SMI handler). On the other hand, at 310, if the OS did not need an MPST service, then the routine loops back to 308 as shown.

To give hardware vendors flexibility in choosing their implementation, ACPI uses tables to describe system information, features, and methods for controlling those features. These tables list devices, e.g., devices on the system board or devices that cannot be detected or power managed using some other hardware standard. They also may list system capabilities such as the sleeping power states supported, a description of the power planes and clock sources available in the system, batteries, system indicator lights, and so on. This enables OSPM (PPM system 238 in OS space for ACPI) to control system devices without needing to know how the system controls are implemented.

FIG. 4 shows a general structure for implementing such tables in accordance with some embodiments. A Root System Description Pointer (RSDP) structure 402 is located in the system's memory address space and may be setup by the platform firmware. This structure contains the address of the Extended System Description Table (XSDT) 404, which references other description tables that provide data to OSPM, supplying it with knowledge of the base system's implementation and configuration.

System description tables should start with identical headers. The primary purpose of the system description tables is to define for OSPM various industry-standard implementation details. Such definitions enable various portions of these implementations to be flexible in hardware requirements and design, yet still provide OSPM with the knowledge it needs to control hardware directly.

OSPM locates that Root System Description Table by following the pointer in the RSDP structure. The RSDT starts with the signature ‘RSDT’ followed by an array of physical pointers to other system description tables that provide various information on other standards defined on the current system. The OSPM examines each table for a known signature. Based on the signature, OSPM can then interpret the implementation-specific data within the table.

With reference to FIG. 5, the Extended System Description Table (XSDT) is further described. It points to other tables in memory. The first table pointed to by pointer 402, the XSDT points to the Fixed ACPI Description table (FADT). The data within this table includes various fixed-length entries that describe the fixed ACPI features of the hardware. The FADT table refers to the Differentiated System Description Table (DSDT), which contains information and descriptions for various system features. The relationship between these tables is shown in FIG. 5.

When the OS initializes during boot, the OSPM finds the RSDP structure. When the OSPM locates the structure, it looks at the physical address for the Root System Description Table or the Extended System Description Table. The Root System Description Table starts with the signature “RSDT”, while the Extended System Description Table starts with the signature “XSDT”. These tables contain one or more physical pointers to other system description tables that provide various information about the system. As shown in FIG. 5, there should always be a physical address in the Root System Description Table for the Fixed ACPI Description table (FADT).

When OSPM follows a physical pointer to another table, it examines each table for a known signature. Based on the signature, OSPM can then interpret the implementation-specific data within the description table.

The purpose of the FADT is to define various static system information related to configuration and power management. The Fixed ACPI Description Table starts with the “FACP” signature. The FADT describes the implementation and configuration details of the ACPI hardware registers on the platform.

The GPE0_BLK and GPE1_BLK blocks provide the foundation for an interrupt-processing model for Control Methods. The P_BLK blocks are for controlling processor features. Besides ACPI Hardware Register implementation information, the FADT also contains a physical pointer to a data structure known as the Differentiated System Description Table (DSDT), which is encoded in Definition Block format.

A Definition Block contains information about the platform's hardware implementation details in the form of data objects arranged in a hierarchical (tree-structured) entity known as the “ACPI namespace”, which represents the platform's hardware configuration. Definition blocks loaded by OSPM combine to form one namespace that represents the platform. Data objects are encoded in a format known as ACPI Machine Language or AML for short. Data objects encoded in AML are “evaluated” by an OSPM entity known as the AML interpreter. Their values may be static or dynamic. The AML interpreter's dynamic data object evaluation capability includes support for programmatic evaluation, including accessing address spaces (for example, I/O or memory accesses), calculation, and logical evaluation, to determine the result. Dynamic namespace objects are known as “control methods”. OSPM “loads” or “unloads” an entire definition block as a logical unit—adding to or removing the associated objects from the namespace. The DSDT should be loaded by OSPM at boot time and should not be unloaded. It contains a Definition Block named the Differentiated Definition Block that contains implementation and configuration information OSPM can use to perform power management, thermal management, or Plug and Play functionality that goes beyond the information described by the ACPI hardware registers.

Definition Blocks can either define new system attributes or, in some cases, build on prior definitions. A Definition Block can be loaded from system memory address space. One use of a Definition Block is to describe and distribute platform version changes.

Definition blocks enable wide variations of hardware platform implementations to be described to the ACPI-compatible OS while confining the variations to reasonable boundaries. Definition blocks enable simple platform implementations to be expressed by using a few well-defined object names.

Some operators perform simple functions and others encompass complex functions. The power of the Definition Block comes from its ability to allow these operations to be glued together in numerous ways, to provide functionality to OSPM. The operators present are intended to allow many useful hardware designs to be ACPI-expressed, not to allow all hardware designs to be expressed.

With reference to FIGS. 6 and 8, a memory power state table (MPST) structure is shown. FIG. 6 illustrates table structures “folding out” from a top level MPST table (FIG. 8). This structure (which as indicated in the figure may include multiple sub structure (e.g., tables) defines the memory power node topology of the configuration. The configuration includes specifying memory power nodes and memory power state characteristics. Each memory power node is specified using address ranges and supported memory power states. The memory power states will typically include both hardware controlled and software controlled memory power states. There can be multiple entries for a given memory power node to support non contiguous address ranges. The MPST table also defines the communication mechanism between the OSPM and firmware for triggering software controlled memory power state transitions implemented in firmware. (For additional information, reference is made to ACPI 5.0 and in particular, to Section 5 of the ACPI 5.0 Specification.)

The MPST PCC Sub Channel Identifier value provided by the platform in this field should be programmed to the Type field of PCC Communications Subspace Structure. The MPST table references its PCC Subspace in a given platform by this identifier.

FIG. 9 is a table showing PCC Command Codes used by an MPST Platform Communication Channel. FIG. 10 is a table showing a Platform Communication Channel Shared Memory Region The OSPM may write PCC registers by filling in the register values in PCC sub channel space and issuing a PCC Execute command. (See FIG. 9). The other command values are reserved.

With reference to FIGS. 7, 11, and 12, memory power state characteristics will now be discussed. FIG. 7 is a diagram showing memory power state transitions. FIG. 11 is a table enumerating the power state values that a node can transition to and/or from for the different memory power states (MP0 to MPn), and FIG. 12 is a table showing command status information for the same. A memory power state represents the state of a memory power node (which maps to a memory address range) while the platform is in the G0 work mg state. A memory power node could be in an active state named MPS0 or in one of the power manage states, MPS1-MPSn. It should be noted that the active memory power state (MPS0) does not preclude memory power management in that state. It merely indicates that any active state memory power management in MPS0 is transparent to the OS PM and more importantly does not require assist from OSPM in terms of restricting memory occupancy and activity.

MPS1-MPSn states arc characterized by non-zero exit latency for ex it from the state to MPS0. These states could require explicit OSPM-initiated entry and exit, explicit OSPM-initiated entry but autonomous exit or autonomous entry and exit. In all three cases, these states require explicit OSPM action to isolate and free the memory address range for the corresponding memory power node. Transitions to more aggressive memory power states (for example, from MPS1 to MPS2) can be entered on progressive idling but require transition through MPS0 (i.e. MPS1 to MPS0 to MPS2). FIG. 7 is a diagram showing memory power state transitions.

It is possible that after OSPM requests a memory power state, a brief period of activity returns the memory power node to MPS0 state. If the platform is capable of returning to a memory power state on a subsequent period of idle, the platform should treat the previously requested memory power state as a persistent hint.

A memory power node is a representation of a logical memory region that can be transitioned in and out of a memory power state as a unit. This logical memory region is made up of one or more system memory address range(s). A Memory Power Node is uniquely identified by Memory Power Node ID.

Note that memory power node structure defined in FIG. 13 can normally only represent a single address range. If a Memory Power Node contains more than one memory address range (i.e. non-contiguous range), firmware should construct a Memory power Node structure for each of the memory address ranges but specify the same Memory Power Node ID for all the structures.

Memory Power Nodes are not hierarchical. However, a given memory address range covered by a Memory power node could be covered by another memory power node if that node's memory address range is inclusive of the other node's range. For example, memory power node MPN0 may cover memory address range 1G-2G and memory power node MPN1 covers 1-4G. Here, the MPN1 memory address range also comprehends the range covered by MPN0.

An OSPM is expected to identify the memory power node(s) that corresponds to the maximum memory address range that OSPM is able to power manage at a given time. For example, if MPN0 covers 1G-2G and MPN1 covers 1-4G and OSPM is able to power manage 1-4G, it should select MPN1. If MPN0 is in a non-active memory power state, OSPM must move MPN0 to MPS0 (Active state) before placing MPN1 in desired Memory Power State.

Note: [Implementation Note in general, memory nodes corresponding to larger address space ranges correspond to higher memory aggregation (e.g. memory covered by a D1MM vs. memory covered by a memory channel) and hence typically presents higher power saving opportunities.

With reference to FIGS. 13 and 14, fields used for communicating memory power node information are shown. (FIG. 13 is a table showing memory power node structure definitions, and FIG. 14 is a table showing a flag format for the same.) Each entry in the MPST table should have corresponding memory power node structure defined.

FIG. 15 is a table showing memory power state structure definitions for an MPST structure in accordance with some embodiments. This structure communicates address range, number of power states implemented, information about individual power states, and the number of distinct physical components that comprise this memory power node The physical component identifiers can be cross-referenced against the memory topology table entries.

FIG. 16 is a table showing a memory power state characteristics structure for an MPST structure in accordance with some embodiments. It describes the power consumed, exit latency and the characteristics of the memory power state. FIG. 17 is table showing a flag format for the memory power state characteristics structure of FIG. 16.

(With reference to the table of FIG. 16, the following should be noted. “Average Power Consumed in MPS0 state” indicates the power in milli-Watts for the MPS0 state. “Relative power savings to MPS0” indicates the savings in the MPSx state as a percentage of savings relative to MPS0 state. Exit Latency provided in the Memory Power Characteristics structure for a specific power state is inclusive of the entry latency for that state. Exit latency should be provided for a memory power state regardless of whether the memory power state entry and/or exit are autonomous or requires explicit trigger from OSPM.)

Not all memory power management states require OSPM to actively transition a memory power node in and out of the memory power state. Platforms may implement memory power states that are fully handled in hardware in terms of entry and exit transition. In such fully autonomous states, the decision to enter the state may be made by hardware based on the utilization of the corresponding memory region and the decision to exit the memory power state may be initiated in response to a memory access targeted to the corresponding memory region.

The role of OSPM software in handling such autonomous memory power states is to vacate the use of such memory regions when possible in order to allow hardware to effectively save power. No other OSPM initiated action is required for supporting these autonomously power managed regions. However, it is not an error if the OSPM explicitly initiates a state transition to an autonomous entry memory power state through the MPST command interface. The platform may accept the command and enter the state immediately in which case it must return command completion with SUCCESS (OOOOOb) status. If the particular platform does not support explicit entry, it should return command completion with NOT SUPPORTED (0001Ob) status.

Platform firmware may have regions of memory reserved for its own use that are unavailable to the OSPM for allocation. Memory nodes where all or portion of the memory is reserved by firmware may pose a problem for OSPM because it does not know whether the firmware reserved memory is in use or not If the firmware reserved memory impacts the ability of the memory power node to enter memory power state(s), the platform should indicate to OSPM (by clearing the Power Managed Flag (see FIG. 14 for details) that this memory power node cannot be power managed. This allows OSPM to ignore such ranges from its memory power optimization.

The memory power state table structure describes address ranges for each of the memory power nodes specified. An OSPM can use the address ranges information provided in MPST table and derive processor affinity of a given memory power node based on the SRAT entries created by the firmware. The association of memory power node to proximity domain can be used by OSPM to implement memory coalescing, taking into account NUMA node topology for memory allocation/release and manipulation of different page lists in memory management code (implementation specific). An example of a policy which can be implemented in OSPM for memory coalescing is: OSPM can prefer allocating memory from local memory power nodes before going to remote memory power nodes.

The hot pluggable memory regions are described using memory device objects in ACPI namespace. The memory address range of these memory device objects may be defined using an ACPI_CRS method. The memory power state table (MPST) structure is a static structure created for all memory objects independent of hot plug status (online or offline) during initialization. The OSPM will populate the MPST table during the boot. If hot-pluggable flag is set for a given memory power node in the MPST table, the OSPM will not use this node until physical presence of memory is communicated through ACPI notification mechanism.

The association between memory device object (e.g. MEMO) to the appropriate memory power node ID in the MPST table is determined by comparing the address range specified using _CRS method and address ranges configured in the MPST table entries. This association should be identified by OSPM as part of ACPI memory hot plug implementation. When memory device is “hot added”, as part of existing ACPI driver for memory hot plug, OSPM will scan device object for_CRS method and get the relevant address ranges for the given memory object, OSPM will determine the appropriate memory power node IDs based on the address ranges from_CRS and enable it for power management and memory coalescing Similarly, when memory is “hot removed”, the corresponding memory power nodes will be disabled.

OSes (non-virtualized OS or a hypervisor/VMM) may need to allocate non-migratable memory. It is recommended that the OSes (if possible) allocate this memory from memory ranges corresponding to memory power nodes that indicate they are not power manageable. This allows OS to optimize the power manageable memory power nodes for optimal power savings. OSes can assume that memory ranges that belong to memory power nodes that are power manageable (as indicated by the flag) are interleaved in a manner that does not impact the ability of that range to enter power managed states. For example, such memory is not cache-line interleaved.

FIG. 18 shows a platform memory topology table (PMTT). This table describes the memory topology of the system to OSPM, where the memory topology can be logical or physical. The topology may be provided to the last level physical component (e.g. D1MM).

FIG. 21 is a diagram showing a processing flow 2102 for processing an MPST command through an ACPI PCC. At 2104, the OSPM should write a target POWER NODE ID value to MEMORY_POWER_NOOE_ID register of the appropriate PCC sub channel to specify a memory power node to be power managed. At 2106, it should write a desired POWER STATE ID value to the POWER STATE ID register of the PCC sub channel to assign the desired power state for the previously identified memory power node.

At 2108, the OSPM writes SET (See FIG. 10) to the MEMORY_POWER_COMMAND register of the PCC sub channel. At 2110, it writes the EXECUTE command (See FIG. 9) to PCC Command register for the PCC sub channel At 2112, the OSPM “rings the door bell” by writing to the Doorbell register.

At 2114, the platform completes the request and should generate an SCI (system control interrupt) to indicate that the command is complete. At 2116, the OSPM should then read the Status register for the PCC sub channel and confirm that the command was successfully completed.

Now, a process flow for an OSPM to get memory power state information, for a desired memory power node, will be described. The OSPM writes target POWER NODE ID value to MEMORY POWER_NOOE_ID register of PCC sub channel Next, it writes GET (See FIG. 10) to MEMORY_POWER_COMMAND register of PCC sub channel Next, it writes PCC EXECUTE (Sec FIG. 9) to PCC Command register for the PCC sub channel. Next, the OSPM rings the door bell by writing to the Doorbell register. The platform should then complete the request and generate an SCI to indicate that the command is complete. The OSPM should then read the Status register for the PCC sub channel and confirm that the command was successfully completed. Finally, he OSPM can read the POWER STATE from POWER_STATE_ID register of PCC sub channel.

The invention is not limited to the embodiments described, but can be practiced with modification and alteration within the spirit and scope of the appended claims. It should also be appreciated that in some of the drawings, signal conductor lines are represented with lines. Some may be thicker, to indicate more constituent signal paths, have a number label, to indicate a number of constituent signal paths, and/or have arrows at one or more ends, to indicate primary information flow direction. This, however, should not be construed in a limiting manner. Rather, such added detail may be used in connection with one or more exemplary embodiments to facilitate easier understanding of a circuit. Any represented signal lines, whether or not having additional information, may actually comprise one or more signals that may travel in multiple directions and may be implemented with any suitable type of signal scheme. 

What is claimed is:
 1. An apparatus, comprising: a memory power node; and a computer platform having firmware including Advanced Configuration and Power Interface (ACPI) components to build a table for an ACPI interface, wherein the table is to store a flag, which is to indicate whether the memory power node is to be power managed, and wherein the memory power node comprises a first memory address range and a second memory address range, such that the first and second memory address ranges are non-contiguous.
 2. The apparatus of claim 1, wherein the memory power node is a first memory power node, wherein the table is a first table, wherein the flag is a first flag, and wherein the apparatus comprises: a second memory power node, wherein the ACPI components is to build a second table for the ACPI interface, wherein the first flag of the first table is to indicate that the first memory power node is to be power managed; wherein the second table is to store a second flag to indicate that the second memory power node is to be not power managed; and wherein the apparatus comprises a power management logic that is to: selectively cause the first memory power node to transition to a low power state, and refrain from an attempt to cause the second memory power node to transition to the low power state.
 3. The apparatus of claim 1, wherein the memory power node is a first memory power node, wherein the table is a first table, wherein the flag is a first flag, and wherein the apparatus comprises: a second memory power node, wherein the ACPI components are to build a second table for the ACPI interface, wherein the first flag of the first table is to indicate that the first memory power node is to be power managed; wherein the second table is to store a second flag to indicate that the second memory power node is to be not power managed; and wherein the apparatus comprises an Operating System (OS) Directed Power Management (OSPM) logic to: consider the first power memory node and ignore the second power memory node, while power optimizing memory power nodes of the apparatus.
 4. The apparatus of claim 3, wherein: the second memory power node comprises a Basic Input/Output System (BIOS) reserved memory nodes.
 5. The apparatus of claim 1, wherein the table further is to store: a second flag is to indicate whether the memory power node is to support hot plug features.
 6. The apparatus of claim 1, wherein the table is a Memory Power Node Structure (MPST), and wherein the MPST is to store: a third flag to indicate one or both of: an Operating System (OS) Directed Power Management (OSPM) logic is to ignore the MPST, or a system firmware is to populate the MPST with static number of structures and selectively enable the MPST.
 7. The apparatus of claim 1, wherein the table is to store: a base address of a memory range associated with the memory power node; and a length of the memory range associated with the memory power node, wherein the length and the base address are usable to derive an end address of the memory range.
 8. The apparatus of claim 1, wherein the memory power node is a representation of a logical memory region that is to transition in and out of a memory power state as a unit.
 9. The apparatus of claim 1, wherein the table is to store: a field to indicate a number of power states supported by the memory power node.
 10. The apparatus of claim 1, wherein the table is to store: a field to provide information of one or more power states supported in the apparatus for the memory power node.
 11. The apparatus of claim 1, wherein the table is to store: a field to: indicate a number of distinct physical components that constitute the memory power node, and identify a number of entries of Physical Component Identifier entries present at an end of the table.
 12. The apparatus of claim 1, wherein the table is to store: an identifier of a distinct physical component that makes up the memory power node.
 13. The apparatus of claim 1, wherein: the table is a first Memory Power Node Structure (MPST); the ACPI components are to build a second MPST; each of the first MPST and the second MPST is to store a same Memory Power Node ID (Identification) associated with the memory power node; the first MPST is to store information to identify the first memory address range; and the second MPST is to store information to identify the second memory address range.
 14. The apparatus of claim 1, wherein: the information to identify the first memory address range includes a base address of the first memory address range and a length of the first memory address range; and the information to identify the second memory address range includes a base address of the second memory address range and a length of the second memory address range.
 15. The apparatus of claim 1, wherein the memory power node is a first memory power node, wherein the table is a first table, and wherein the apparatus comprises: a second memory power node, wherein the ACPI components are to build a second table for the ACPI interface, the second table associated with the second memory power node; wherein the first memory power node is a representation of a first memory region; wherein the second memory power node is a representation of a second memory region; and wherein the first memory region at least in part overlaps with the second memory region.
 16. The apparatus of claim 15, wherein: the second memory region is included in the first memory region, such that the first memory region comprises the second memory region and a third memory region; at a first time, an Operating System (OS) Directed Power Management (OSPM) logic is to start transitioning the first memory power node to a first memory power state, wherein the first memory power state is different from an active memory power state; immediately prior to the first time, the second memory region is in a non-active memory power state; and from the first time, the second memory region is to transition from the non-active memory power state to the active memory power state, and then transition to the first memory power state, in response to the OSPM logic starting to transition the first memory power node to the first memory power state.
 17. An apparatus, comprising: a computer platform with an operating system (OS) to incorporate a performance and power management (PPM) interface; physical memory available to the OS, wherein the OS is to manage power states of the memory through the PPM interface; and firmware to build a table for the PPM interface, wherein the table is to store: a first field to indicate whether memory contents is to be preserved if a memory power node enters a first memory power state, a second field to indicate whether the first memory power state entry transition is to be triggered by Operating System (OS) Directed Power Management (OSPM), or whether the first memory power state entry transition is automatically implemented in hardware and does not require an OSPM trigger, and a third field to indicate whether the first memory power state exit is to be triggered by the OSPM, or whether the first memory power state exit is automatically implemented on access to a memory address range corresponding to the memory power node, wherein the memory power node comprises a first memory address range and a second memory address range, such that the first and second memory address ranges are non-contiguous.
 18. The apparatus of claim 17, further comprising: a fourth field to provide an indication of average power consumed for the memory power node in the first memory power state; a fifth field to provide a percentage of power saved in the first memory power state relative to an active MPS0 state; and a sixth field to provide latency of exiting out of the first memory power state to the active MPS0 state.
 19. An apparatus, comprising: a computer platform with an operating system (OS) to incorporate a performance and power management (PPM) interface; physical memory available to the OS, the OS to manage power states of the memory through the PPM interface; and firmware to build a first table and a second table for the PPM interface, wherein each of the first table and the second table is to store a same Memory Power Node ID (Identification) associated with a memory power node; wherein the memory power node comprises a first memory address range and a second memory address range, such that the first and second memory address ranges are non-contiguous; wherein the first table is to store information to identify the first memory address range; and wherein the second table is to store information to identify the second memory address range.
 20. The apparatus of claim 19, wherein: the information to identify the first memory address range includes a base address of the first memory address range and a length of the first memory address range; and the information to identify the second memory address range includes a base address of the second memory address range and a length of the second memory address range. 